package com.atguigu.spzx.manage.controller;

import com.atguigu.spzx.manage.service.ClientUserService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@Tag(name = "client登录接口")
@RestController
@RequestMapping(value = "/client/system/index")
public class ClientLoginController{

    @Autowired
    private ClientUserService clientUserService;
//    @Operation(summary = "登录接口")
//    @PostMapping(value = "/login")
//    public Result<LoginVo> login(@RequestBody LoginDto loginDto) {
//        //用户名userName,密码password,提交验证码captcha,验证码codeKey
//        log.info("登录用户为：{}",loginDto);
//        //令牌,刷新令牌(可为空)
//        LoginVo loginVo = clientUserService.login(loginDto) ;
//        return Result.build(loginVo , ResultCodeEnum.SUCCESS) ;
//    }

}
